<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品列表</title>
</head>
<body>
    <h1>商品列表</h1>
    <div class="goodslist">
        <ul>
            <% datalist.forEach(item=>{ %>
                <li>
                    <p class="id"><%= item.id %></p>
                    <h4><%= item.name %></h4>
                    <p class="price"><%= item.price %></p>
                </li>
            <% }) %>
        </ul>
    </div>
</body>
</html>